package com.huang.module01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName url_analysis
 */
@TableName(value ="url_analysis")
public class UrlAnalysis implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.INPUT)
    private Integer id;

    /**
     * 客户id
     */
    private Integer userId;

    /**
     * 任务id
     */
    private Integer taskId;

    /**
     * 检索网址
     */
    private String url;

    /**
     * （检索网址的关键字）多个以逗号分开
     */
    private String keywords;

    /**
     * 是否完成检测（0未检测,1完成）
     */
    private Integer isFinish;

    /**
     * 检测到的关键词
     */
    private String keyword;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 客户id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 客户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 任务id
     */
    public Integer getTaskId() {
        return taskId;
    }

    /**
     * 任务id
     */
    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    /**
     * 检索网址
     */
    public String getUrl() {
        return url;
    }

    /**
     * 检索网址
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * （检索网址的关键字）多个以逗号分开
     */
    public String getKeywords() {
        return keywords;
    }

    /**
     * （检索网址的关键字）多个以逗号分开
     */
    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    /**
     * 是否完成检测（0未检测,1完成）
     */
    public Integer getIsFinish() {
        return isFinish;
    }

    /**
     * 是否完成检测（0未检测,1完成）
     */
    public void setIsFinish(Integer isFinish) {
        this.isFinish = isFinish;
    }

    /**
     * 检测到的关键词
     */
    public String getKeyword() {
        return keyword;
    }

    /**
     * 检测到的关键词
     */
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UrlAnalysis other = (UrlAnalysis) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords()))
            && (this.getIsFinish() == null ? other.getIsFinish() == null : this.getIsFinish().equals(other.getIsFinish()))
            && (this.getKeyword() == null ? other.getKeyword() == null : this.getKeyword().equals(other.getKeyword()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode());
        result = prime * result + ((getIsFinish() == null) ? 0 : getIsFinish().hashCode());
        result = prime * result + ((getKeyword() == null) ? 0 : getKeyword().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", taskId=").append(taskId);
        sb.append(", url=").append(url);
        sb.append(", keywords=").append(keywords);
        sb.append(", isFinish=").append(isFinish);
        sb.append(", keyword=").append(keyword);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}